package testing.domain.person;

import testing.i18n.Bundle;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;

public class Student extends Person {
	static BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
    static Scanner input = new Scanner(System.in);
//////////////////////
    ArrayList<Student> students;
    int studentId;
    String group;
	int grade;
	double averageMark;

    public Student (){}
	public Student (int studentId, String name, String surname, String password, String group, int grade)
	{
        this.studentId = studentId;
		this.name = name;
        this.surname = surname;
        this.password = password;
		this.group = group;
		this.grade = grade;
	}

    public int getGrade() {
        return grade;
    }

    public String getGroup() {
        return group;
    }

    public int getStudentId() {
        return studentId;
    }

    //////////////////////
    public void studPrint1() throws IOException {
        System.out.print(Bundle.b1.getString("nameLoc"));
        name = br.readLine();
        System.out.print(Bundle.b1.getString("gradeLoc"));
        grade = input.nextInt();
        System.out.print(Bundle.b1.getString("groupLoc"));
        group = br.readLine();
        System.out.println(Bundle.b1.getString("the1")+name);
        System.out.println(Bundle.b1.getString("the2")+group);
        System.out.println(Bundle.b1.getString("the3")+grade);
        System.out.println(Bundle.b1.getString("hello"));
    }
        public void studPrint2() throws IOException {
        System.out.print(Bundle.b2.getString("nameLoc"));
        name = br.readLine();
        System.out.print(Bundle.b2.getString("gradeLoc"));
        grade = input.nextInt();
        System.out.print(Bundle.b2.getString("groupLoc"));
        group = br.readLine();
        System.out.println(Bundle.b2.getString("the1")+name);
        System.out.println(Bundle.b2.getString("the2")+group);
        System.out.println(Bundle.b2.getString("the3")+grade);
        System.out.println(Bundle.b2.getString("hello"));
        }
}
